package com.lhl.demo;

import com.lhl.fw.db.repository.BaseJpaRepositoryFactoryBean;
import com.lhl.gencode.auditing.JpaAuditingHandlerRegistrar;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @className: DemoApplication
 * @description: TODO 类描述
 * @author: king
 * @date: 2020-09-04 9:17
 **/
@SpringBootApplication
@EnableJpaAuditing
@Import(JpaAuditingHandlerRegistrar.class)
@EnableJpaRepositories(basePackages = {"com.lhl.demo.repository"}, repositoryFactoryBeanClass = BaseJpaRepositoryFactoryBean.class)
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class,args);
    }
}